<template>
  <div class="mywork">
    <!-- 头部 -->
    <van-nav-bar class="top">
      <template #title>
        <div class="title22">黑马程序员</div>
      </template>
      <template #left>
        <div>
          <van-icon name="arrow-left" @click="goback" class="fanhui" />
        </div>
      </template>
    </van-nav-bar>
    <!-- 标签 -->
    <van-tabs v-model="activeName">
      <van-tab title="作品" name="a">
        <div class="nomore">没有更多了</div>
      </van-tab>
      <van-tab title="公告" name="b">
        <div class="gongg">
          <div class="title">欢迎来到黑马头条社区</div>
          <div class="time">2018-10-24T10:24:00</div>
        </div>
        <div class="nomore">没有更多了</div>
      </van-tab>
      <van-tab title="数据" name="c">
        <div class="shuju">
          <div class="one">
            <div class="txt">粉丝数</div>
            <div class="num">12</div>
          </div>
          <span class="xian"></span>
          <div class="one">
            <div class="txt">阅读数</div>
            <div class="num">58</div>
          </div>
        </div>
        <div class="nomore">没有更多了</div>
      </van-tab>
    </van-tabs>
  </div>
</template>

<script>
export default {
  data () {
    return {
      activeName: 'a'
    }
  },
  methods: {
    goback () {
      this.$router.push('/my')
    }
  }
}
</script>

<style lang="less" scoped>
.mywork {
  background-color: rgb(245, 247, 249);
  width: 100%;
  height: 100vh;
  font-size: 14px;
}
.title22 {
  color: #fff;
}
.nomore {
  text-align: center;
  margin-top: 20px;
  color: gray;
}
.top {
  background-color: rgb(50, 150, 250);
}
.gongg {
  width: 100%;
  height: 110px;
  background-color: #fff;
  margin-top: 10px;
  padding: 0 15px;
  .title {
    width: 100%;
    height: 50%;
    line-height: 80px;
    font-size: 18px;
    font-weight: 700;
  }
  .time {
    width: 100%;
    height: 50%;
    line-height: 50px;
    color: rgb(204, 193, 193);
  }
}
.shuju {
  width: 100%;
  height: 115px;
  background-color: #fff;
  margin-top: 1px;
  display: flex;
  .one {
    flex: 1;
    text-align: center;
    .txt {
      margin-top: 25px;
      font-size: 16px;
      color: orange;
    }
    .num {
      font-size: 40px;
      color: gray;
    }
  }
}
.xian {
  width: 1px;
  height: 70px;
  background-color: rgb(204, 193, 193);
  margin-top: 20px;
}
.fanhui {
  color: #fff;
}
</style>
